package com.zhss.eshop.auth.dao.impl;

import com.zhss.eshop.auth.dao.PriorityDAO;
import com.zhss.eshop.auth.domain.PriorityDO;
import com.zhss.eshop.auth.mapper.PriorityMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Description
 * @Author hanmeng
 * @Date 13:54 2021/4/4
 * @Version 1.0
 **/
@Repository
public class PriorityDAOImpl implements PriorityDAO {
    /**
     * 权限管理模块的mapper组件
     */
    @Autowired
    private PriorityMapper priorityMapper;


    @Override
    public List<PriorityDO> listRootPriorities() throws Exception {
        List<PriorityDO> priorityDOs = priorityMapper.listRootPriorities();
        return priorityDOs;
    }
}
